package com.esunny.db.hbase;

import java.util.Random;

public class DeleteAction extends Action {

    private Random random = new Random();

    @Override
    public void before() {
        int keynum = random.nextInt(this.keySpace);
        key = "user" + keynum;
    }

    @Override
    public int execute() {
        return cli.delete(this.tableName, key);
    }

    @Override
    public void after() {

    }
}
